Synchronization of content between networked devices

ABSTRACT

Networked devices are arranged to play content such as audio and video content in synchronization. A synching device receives a packet from an initiating device over a network. The packet may include an identifier of content to play, such as a URI, and an indication of when to play the content. A local clock time to play the content is determined based on a time of a local clock of the first device and the indication of when to play the content. The synching device obtains from a server the content based on the received identifier, and plays the content in synchronization with the initiating device based on a time on the local clock and the local clock time to play the content. In some embodiments, the synching device also adjusts a clock speed of the local clock reference to control rate of playback of the content.

FIELD OF THE DISCLOSURE

The disclosure is related to consumer goods and, more particularly, to methods, systems, products, features, services, and other elements directed to media playback or some aspect thereof.

BACKGROUND

Options for accessing and listening to digital audio in an out-loud setting were limited until in 2003, when SONOS, Inc. filed for one of its first patent applications, entitled “Method for Synchronizing Audio Playback between Multiple Networked Devices,” and began offering a media playback system for sale in 2005. The Sonos Wireless HiFi System enables people to experience music from many sources via one or more networked playback devices. Through a software control application installed on a smartphone, tablet, or computer, one can play audio in any room that has a networked playback device. Additionally, using the controller, for example, different songs can be streamed to each room with a playback device, rooms can be grouped together for synchronous playback, or the same song can be heard in all rooms synchronously.

Given the ever growing interest in digital media, there continues to be a need to develop consumer-accessible technologies to further enhance the listening experience.

BRIEF DESCRIPTION OF THE DRAWINGS

Features, aspects, and advantages of the presently disclosed technology may be better understood with regard to the following description, appended claims, and accompanying drawings where:

FIG. 1 shows an example playback system configuration in which certain embodiments may be practiced;

FIG. 2 shows a functional block diagram of an example playback device;

FIG. 3 shows a functional block diagram of an example control device;

FIG. 4 shows an example controller interface;

FIG. 5A and FIG. 5B show example network configurations;

FIG. 6 is an example structure for an initiating device or a synching device;

FIG. 7 is an example timing diagram for determining network latency of a communication network;

FIG. 8 is an example timing diagram for synchronizing networked devices;

FIG. 9 is an example packet associated with synchronizing network devices;

FIG. 10 is an example format of media content;

FIG. 11 is an example packet associated with synchronizing network devices;

FIG. 12 is an example packet associated with synchronizing network devices;

FIG. 13 is another example format of media content;

FIG. 14 is an example flow diagram for achieving synchronization between networked devices; and

FIG. 15 is an example flow diagram for achieving synchronization between networked devices.

The drawings are for the purpose of illustrating example embodiments, but it is understood that the embodiments are not limited to the arrangements and instrumentality shown in the drawings.

DETAILED DESCRIPTION I. Overview

Synchronized playback of audio and video content on separate networked devices requires a synchronization process. Synchronization enables video content to be played back in synchrony with the associated audio content. Certain embodiments disclosed herein enable synchronization of playback devices.

A communication network may communicatively couple the playback devices. The communication network may be any suitable network, such as a WiFi network, Bluetooth network, cellular network, or a satellite network, among other examples. The playback device may be arranged to play back audio and video content. Audio and/or video content may be transported across the communication network in the form of packets, for example, to the playback devices. In this regard, the network device may receive this content and play back the audio and/or video content.

Latency or jitter conditions on the communication network may affect playback of audio and video content. Latency can be a measure of a delay in a one way trip of the packet from one device on the network to another device on the network. Jitter can be a measure of the variance in the one-way trip time.

The communication network may or may not be suitable for audio/video communications depending on the amount of latency or jitter on the network. For video, for instance, low latency may be defined as less than 40 ms delay in a one-way trip of a packet from a first device to a second device on the network for a 25 frame per second video sequence, although other examples of low latency may exist. Low jitter may be defined as plus or minus 20 ms variance in a one-way trip time for the 25 frame per second video sequence, although other examples of low jitter may exist. Suitable network conditions may be low latency or low jitter. For example, if an audio playback device and video playback device retrieves audio content and video content respectively from a server on the network for playback, any latency or jitter greater than the low latency or low jitter amounts may lead to unsuitable synchronization of audio and video.

The latency and jitter of a network can be measured, for example, using a test packet. The test packet may be a packet specifically sent by a network device for determining the network latency or a packet. Alternatively, the test packet may also serves another purpose and be used for determining latency and/or jitter.

For example, a video device can send a test packet to an audio playback device. The test packet may have header which indicates routing information to the audio playback device and a payload. The video device may have an onboard local clock responsible for maintaining hardware timing within the audio playback device. The payload of the packet may define a time on the local clock of the video device when the test packet was sent.

The communication network may route the test packet from the video device to the audio playback device. The audio playback device may receive the test packet and send an acknowledgement packet back to the video device. The acknowledgement packet may include the time which was in the payload of the test packet sent by the video device. At the time of receipt of the acknowledgement packet, the video device may again note the time on its local clock. A difference between when the test packet is sent to when the acknowledgment was received is a round trip time of the packet. One half of the time of the round trip time may be indicative of the latency of the communication network.

The test packet may be sent multiple times and acknowledgements may be received multiple times. Variations in the one way times may be indicative of jitter. Further, several measurements can be performed and averaged together to provide a mean latency and a mean jitter. The mean latency and mean jitter may be a characterization of the communication network. This characterization may be performed prior to playback of audio or video content or in the event that the communication network is known to have a latency or jitter concerns.

An initiating device and a synching device may be involved in playback of media content. The initiating device may be device which indicates start of the playback. For example, example, the initiating device may be a video playback device which plays back video content. The synching device may be a device which is arranged to playback audio or video in synchronization with the initiating device. In this example, the synching device may be an audio playback device which plays the audio associated with the video content of the video playback device.

The initiating device may send a packet to the synching device. The packet may identify a location of content to play where the location may be indicated by an addressing link such as a universal resource indicator (URI). The URI may indicate the location of content to be played, which may be on an initiating device or on some other device in the network and may include the protocol by which to retrieve it. The URI may also be known as a universal resource locator (URL).

The packet may also include a presentation timestamp which indicates a place in the content where playback should be initiated. For example, the presentation timestamp may indicate that within a one minute video file, the content is to start playback at the 30 second mark. The packet may also define an indication of when to play the content. This indication may be a length of time until the playback starts as determined with reference to the local clock of the initiating device and referred to herein as a delta value. The delta value may enable the synching device to playback content in synchronization with the initiating device.

The synching device may extract the URI and the delta value from the packet when the synching device receives the packet. The initiating device and synching device may also obtain the content to be played back based on the URI. At this point, the initiating device and the synching device may be ready to play the content indicated by the URI. One device may play back audio and another device may play back video corresponding to the audio, albeit in some instances both devices may be playing back the same content. Further, each device may play the content starting at the designed presentation timestamp. A delta value may indicate the time when the initiating device is to play the content. For instance, the delta value can indicate to play at a time equal to the local clock time of the initiating device plus the delta value. Similarly, the time to play the content on the synching device may be at a time equal to the time of the local clock of the synching device when the packet is received plus the delta value. The delta value enables the synching device to playback content in synchronization with the initiating device. In some instances, the delta value may be corrected by the network latency to further improve synchronization.

For example, if the local clock of the synching device indicates 1000 ms when the synchronization packet is received and the time when the content is to be played back (e.g., delta value) is 10 ms in the future, then the content at the designated presentation timestamp may be played back on the synching device when the local clock equals 1010 ms. At the time of the local clock on the initiating device plus the delta value, the initiating device may also play the content. For example, if the local clock of the initiating device indicates 1005 ms when the packet is sent and the time when the content is to be played back is 10 ms, then the content at the presentation timestamp may be played back on the initiating device when the local clock equals 1015 ms. In some examples, the delta value may be subtracted by the network latency and used by the synching device depending on network conditions. After playback of the first frame, synching device may refer to subsequent presentation timestamps in the content to present subsequent frames of content and its local clock to maintain playback timing. The presentation timestamps in the content may indicate timing information. For example, if the presentation timestamps in the content indicates to play a frame each 40 ms, then each frame may be played every 40 ms as timed by the local clock. Note that the frame size for the audio frames and the video frames need not be equivalent.

Updates may be sent over time to account for variations in the timing (“drift”) between the local clock of the initiating device and the local clock of the synchronizing device during playback of the content. The update may take the form of a synchronization packet. These updates may need only to be sent in one direction between devices thus yielding a unidirectional synchronization for content playback.

The synchronization packet sent by the initiating device may allow for calculating a presentation offset value. In the event that the packet defines a new delta value, then the synching device may adjust a rate of playback based on this received new delta value and the calculated presentation offset. The presentation timestamp in the content may specify when a particular frame of content is to be presented. The synching device may use the presentation timestamp in the content to calculate an expected time of the local clock when the particular frame of content is to be played. The difference between the expected time and the current local time is an expected delta value. The received new delta value may define when the synching device should present the particular frame. The variation between the expected delta value and the received new delta value indicated in the synchronization packet, e.g., presentation time offset, may be used to adjust a speed of the local clock on the synching device. In one example, a ratio of the difference between the expected delta value and the received new delta value to the received new delta value may be used to adjust the clock speed on the synchronizing device.

An example of the use of this method and apparatus may be in a home theatre system. The home theatre system may have a video playback device such as a television and an audio playback device such as a speaker separated by a communication network. In this regard, a user may initiate via the video playback device playback of video content. The video playback device may send a packet to the audio playback device defining a URI and a delta value which indicates when to play back the content, e.g., a length of time until playback starts. The audio playback device may receive this packet, determine the current time of its local clock, and add the delta value to the current time to determine the local clock time when the audio content should be played. In some examples, the delta value may be adjusted by the latency of the network. The audio playback device may also obtain audio content using the URI, for example, from a server on the network or even the video device itself. At the local time when the audio content should be played, the audio playback device may play back the audio content. The video playback device may use the same delta value to playback the video based on its local clock.

In this regard, the audio playback device can use the delta value to synchronize playback of the audio content with the video content played by the video playback device. Accordingly, the video and audio playback devices may monitor each of its own respective the local clock until it indicates a time later at which the audio playback device may play the audio content and the video playback device may play the video content. The local clock of the audio playback device and the video device may not require a separate synchronization process during video and audio playback.

Moving on from the above illustration, an example embodiment includes a first device comprising a network interface configured to communicate with a second device and a third device over a network; a processor comprising instructions, which when executed, cause the processor to: receive, by the first device from the second device over the network, an identifier of content to play and an indication of when to play the content; determine, by the first device, a local clock time to play the content, the local clock time to play the content based on a time of a local clock of the first device and the indication of when to play the content; obtain, by the first device from the third device over the network, the content to play based on the received identifier of content to play; and play, by the first device, the obtained content based on the time of the local clock and the local clock time to play the content. The indication of when to play the content may be associated with a network latency. The network latency may be based on a mean of a round trip packet delay between the first device and the second device. The identifier of content to play may be a URI which facilitates access to the content on the third device via the network.

The instructions for receiving, by the first device from the second device over the network, the identifier of content to play may further comprise receiving a presentation timestamp which indicates a location in the content to start playback. The indication of when to play the content may be a length of time until playback starts, and the instructions for determining, by the first device, a local clock time to play the content may comprise adding the length of time until playback starts to the time of the local clock. The content may comprise a plurality of frames, and the indication of when to play the content is a length of time until playback of a frame.

The first device may further comprise instructions to receive a synchronization packet comprising a new length of time until playback of a frame, determine an expected length of time until playback of the frame based on a presentation timestamp embedded in the content and the time of the local clock, wherein the presentation timestamp indicates a timing of playback for the content, and adjust a clock speed of the local clock based on the expected length of time until playback of a frame and the new length of time until playback of a frame.

The instructions for adjusting the clock speed may comprise calculating the following expression: (Delta E-DeltaR)/(Delta_R) where Delta_E is the expected length of time until playback of the frame and Delta_R is the new length of time until playback of the frame. The first device may further comprise instructions to play, by the first device, the content in synchronization with the second device based on presentation timestamps embedded in the content, the presentation timestamps indicating timing of playback for the content. The instruction for receiving, by the first device from the second device over the network, an identifier of content to play may comprise receiving a packet with a sequence number. The first device may further comprise instructions to send, by the first device, an acknowledgement packet from the first device to the second device, the acknowledgment packet including the sequence number of the packet. The second device may use this round-trip time as the basis of a latency calculation. A network latency may be subtracted from the indication of when to play the content. The network latency may be subtracted by either the first device or the second device.

Another example embodiment may include a method for synchronizing playback between a first device and a second device, the method comprising receiving, by the first device from the second device over a network, an identifier of content to play and an indication of when to play the content; determining, by the first device, a local clock time to play the content, the local clock time to play the content based on a time of a local clock of the first device and the indication of when to play the content; obtaining, by the first device from a third device over the network, the content to play based on the received identifier of content to play; and playing, by the first device, the obtained content based on the time of the local clock and the local clock time to play the content. A network latency may be subtracted from the indication of when to play the content. The latency may be subtracted by the first device or the second device. The method of determining, by the first device, a local clock time to play the content may comprise subtracting, by the first device, a network latency from the indication of when to play the content.

The first device may be an audio playback device, the content may comprise audio content and video content, and the method of playing, by the first device, the content may comprise dropping, by the first device, the video content and playing the audio content. The method may further comprise receiving a synchronization packet which defines at least one of a new presentation timestamp, a new length of time until playback of a frame, and a new clock generation number. The content may comprise a plurality of frames, and wherein the indication of when to play the content is a length of time until playback of a frame. The method may further comprise receiving a synchronization packet comprising a new length of time until playback of a frame, determining an expected length of time until playback of a frame based on a presentation timestamp embedded in the content and the time of the local clock, wherein the presentation timestamp indicates a timing of playback for the content, and adjusting a clock speed of the local clock based on the expected length of time until playback of a frame and the new length of time until playback of a frame. The method may further comprise playing, by the synchronizing device, the content in synchronization with the second device based on presentation timestamps embedded in the content, the presentation timestamps being indicative of a timing of playback for the content.

In yet another example embodiment, a computer readable storage medium may include instructions for execution by a processor, the instructions, when executed, cause the processor to implement a method comprising: receiving, by the first device from the second device over a network, an identifier of content to play and an indication of when to play the content; determining, by the first device, a local clock time to play the content based on a time of a local clock of the first device and the indication of when to play the content; obtaining, by the first device from a third device over the network, the content to play based on the received identifier of content to play; and playing, by the first device, the obtained content based on the time of the local clock and the local clock time to play the content. The content may comprise a plurality of frames, and the indication of when to play the content may be a length of time until playback of a frame. The method may further comprise instructions to receive a synchronization packet which defines a new length of time until playback of a frame; determine an expected length of time until playback of a frame based on presentation timestamps embedded in the content and the time of the local clock; and adjust a clock speed of the local clock based on the expected length of time until playback of a frame and the new length of time until playback of a frame.

II. Example Operating Environment

FIG. 1 shows an example configuration of a media playback system 100 in which one or more embodiments disclosed herein may be practiced or implemented. The media playback system 100 as shown is associated with an example home environment having several rooms and spaces, such as for example, a master bedroom, an office, a dining room, and a living room. As shown in the example of FIG. 1, the media playback system 100 includes playback devices 102-124, control device 126, 128, and a wired or wireless network router 130.

Further discussions relating to the different components of the example media playback system 100 and how the different components may interact to provide a user with a media experience may be found in the following sections. While discussions herein may generally refer to the example media playback system 100, technologies described herein are not limited to applications within, among other things, the home environment as shown in FIG. 1. For instance, the technologies described herein may be useful in environments where multi-zone audio may be desired, such as, for example, a commercial setting like a restaurant, mall or airport, a vehicle like a sports utility vehicle (SUV), bus or car, a ship or boat, an airplane, and so on.

a. Example Playback Devices

FIG. 2 shows a functional internal block diagram of an example playback device 200 that may be configured to be one or more of the playback devices 102-124 of the media playback system 100 of FIG. 1. The playback device 200 may include a processor 202, software components 204, memory 206, audio processing components 208, audio amplifier(s) 210, speaker(s) 212, and a network interface 214 including wireless interface(s) 216 and wired interface(s) 218. In one case, the playback device 200 may not include the speaker(s) 212, but rather a speaker interface for connecting the playback device 200 to external speakers. In another case, the playback device 200 may include neither the speaker(s) 212 nor the audio amplifier(s) 210, but rather an audio interface for connecting the playback device 200 to an external audio amplifier or audio-visual receiver.

In one example, the processor 202 may be a computing component configured to process input data according to instructions stored in the memory 206. The processor 202 may be driven in some examples by a local clock 222 which may be a hardware circuit such as a timer, oscillator, voltage controlled oscillator, crystal, or counter which maintains timing on the example playback device 200. In other arrangements the local clock 222 may be a combination of hardware and software. The memory 206 may be a tangible computer-readable medium configured to store instructions executable by the processor 202. For instance, the memory 206 may be data storage that can be loaded with one or more of the software components 204 executable by the processor 202 to achieve certain functions. In one example, the functions may involve the playback device 200 retrieving audio data from an audio source or another playback device. In another example, the functions may involve the playback device 200 sending audio data to another device or playback device on a network. In yet another example, the functions may involve pairing of the playback device 200 with one or more playback devices to create a multi-channel audio environment.

Certain functions may involve the playback device 200 synchronizing playback of audio content with one or more other playback devices. During synchronous playback, a listener will preferably not be able to perceive time-delay differences between playback of the audio content by the playback device 200 and the one or more other playback devices. U.S. Pat. No. 8,234,395 entitled, “System and method for synchronizing operations among a plurality of independently clocked digital data processing devices,” which is hereby incorporated by reference, provides in more detail some examples for audio playback synchronization among playback devices.

The memory 206 may further be configured to store data associated with the playback device 200, such as one or more zones and/or zone groups the playback device 200 is a part of, audio sources accessible by the playback device 200, or a playback queue that the playback device 200 (or some other playback device) may be associated with. The data may be stored as one or more state variables that are periodically updated and used to describe the state of the playback device 200. The memory 206 may also include the data associated with the state of the other devices of the media system, and shared from time to time among the devices so that one or more of the devices have the most recent data associated with the system. Other embodiments are also possible.

The audio processing components 208 may include one or more digital-to-analog converters (DAC), an audio preprocessing component, an audio enhancement component or a digital signal processor (DSP), and so on. In one embodiment, one or more of the audio processing components 208 may be a subcomponent of the processor 202. In one example, audio content may be processed and/or intentionally altered by the audio processing components 208 to produce audio signals. The produced audio signals may then be provided to the audio amplifier(s) 210 for amplification and playback through speaker(s) 212. Particularly, the audio amplifier(s) 210 may include devices configured to amplify audio signals to a level for driving one or more of the speakers 212. The speaker(s) 212 may include an individual transducer (e.g., a “driver”) or a complete speaker system involving an enclosure with one or more drivers. A particular driver of the speaker(s) 212 may include, for example, a subwoofer (e.g., for low frequencies), a mid-range driver (e.g., for middle frequencies), and/or a tweeter (e.g., for high frequencies). In some cases, each transducer in the one or more speakers 212 may be driven by an individual corresponding audio amplifier of the audio amplifier(s) 210. The speaker(s) 212 may also be capable of beam-steering, e.g., playing audio sound in such a way as to aim the audio sound at a particular angle within a window of the playback device. In some instances, independently addressable drivers of the speakers(s) 212 enable beam-steering through physically altering the direction of one or more drivers or offsetting phase for each a given set of audio drivers to aim the sound. In addition to producing analog signals for playback by the playback device 200, the audio processing components 208 may be configured to process audio content to be sent to one or more other playback devices for playback.

Audio content to be processed and/or played back by the playback device 200 may be received from an external source, such as via an audio line-in input connection (e.g., an auto-detecting 3.5 mm audio line-in connection), or the network interface 214. The playback device may be equipped with a microphone 220 or microphone array 220. The microphone(s) 220 may be an acoustic-to-electric transducer or sensor that converts sound into an electrical signal. The microphone(s) 220 may be used to detect the general location of an audio source. The electrical signal of the microphone(s) 220 may need to be amplified before being further processed. Accordingly, an amplifier such as audio amplifier 210 may also receive the electrical signal from the microphone 220 and amplify it for further processing by the audio processing components 208. The electrical signal may be processed by the audio processing components 208 and/or the processor 202. The microphone(s) 220 may be positioned in one or more orientations at one or more locations on the playback device 200. The microphone(s) 220 may be configured to detect sound within one or more frequency ranges. In one case, one or more of the microphone(s) 220 may be configured to detect sound within a frequency range of audio that the playback device 200 is capable or rendering. In another case, one or more of the microphone(s) 220 may be configured to detect sound within a frequency range audible to humans. Other examples are also possible.

The network interface 214 may be configured to facilitate a data flow between the playback device 200 and one or more other devices on a data network. As such, the playback device 200 may be configured to receive audio content over the data network from one or more other playback devices in communication with the playback device 200, network devices within a local area network, or audio content sources over a wide area network such as the Internet. In one example, the audio content and other signals transmitted and received by the playback device 200 may be transmitted in the form of digital packet data containing an Internet Protocol (IP)-based source address and IP-based destination addresses. In such a case, the network interface 214 may be configured to parse the digital packet data such that the data destined for the playback device 200 is properly received and processed by the playback device 200.

As shown, the network interface 214 may include wireless interface(s) 216 and wired interface(s) 218. The wireless interface(s) 216 may provide network interface functions for the playback device 200 to wirelessly communicate with other devices (e.g., other playback device(s), speaker(s), receiver(s), network device(s), control device(s) within a data network the playback device 200 is associated with) in accordance with a communication protocol (e.g., any wireless standard including Bluetooth, WiFi, IEEE 802.11a, 802.11b, 802.11g, 802.11n, 802.11ac, 802.15, 4G mobile communication standard, near field communication (NFC) and so on). The wired interface(s) 218 may provide network interface functions for the playback device 200 to communicate over a wired connection with other devices in accordance with a communication protocol (e.g., IEEE 802.3). While the network interface 214 shown in FIG. 2 includes both wireless interface(s) 216 and wired interface(s) 218, the network interface 214 may in some embodiments include only wireless interface(s) or only wired interface(s).

In one example, the playback device 200 and one other playback device may be paired to play two separate audio components of audio content. For instance, playback device 200 may be configured to play a left channel audio component, while the other playback device may be configured to play a right channel audio component, thereby producing or enhancing a stereo effect of the audio content. The paired playback devices (also referred to as “bonded playback devices”) may further play audio content in synchrony with other playback devices.

In another example, the playback device 200 may be sonically consolidated with one or more other playback devices to form a single, consolidated playback device. A consolidated playback device may be configured to process and reproduce sound differently than an unconsolidated playback device or playback devices that are paired, because a consolidated playback device may have additional speaker drivers through which audio content may be rendered. For instance, if the playback device 200 is a playback device designed to render low frequency range audio content (i.e. a subwoofer), the playback device 200 may be consolidated with a playback device designed to render full frequency range audio content. In such a case, the full frequency range playback device, when consolidated with the low frequency playback device 200, may be configured to render only the mid and high frequency components of audio content, while the low frequency range playback device 200 renders the low frequency component of the audio content. The consolidated playback device may further be paired with a single playback device or yet another consolidated playback device.

By way of illustration, SONOS, Inc. presently offers (or has offered) for sale certain playback devices including a “PLAY:1,” “PLAY:3,” “PLAY:5,” “PLAYBAR,” “CONNECT:AMP,” “CONNECT,” and “SUB.” Any other past, present, and/or future playback devices may additionally or alternatively be used to implement the playback devices of example embodiments disclosed herein. Additionally, it is understood that a playback device is not limited to the example illustrated in FIG. 2 or to the SONOS product offerings. For example, a playback device may include a wired or wireless headphone. In another example, a playback device may include or interact with a docking station for personal mobile media playback devices. In yet another example, a playback device may be integral to another device or component such as a television, a lighting fixture, or some other device for indoor or outdoor use.

b. Example Playback Zone Configurations

Referring back to the media playback system 100 of FIG. 1, the environment may have one or more playback zones, each with one or more playback devices. The media playback system 100 may be established with one or more playback zones, after which one or more zones may be added, or removed to arrive at the example configuration shown in FIG. 1. Each zone may be given a name according to a different room or space such as an office, bathroom, master bedroom, bedroom, kitchen, dining room, living room, and/or balcony. In one case, a single playback zone may include multiple rooms or spaces. In another case, a single room or space may include multiple playback zones.

As shown in FIG. 1, the balcony, dining room, kitchen, bathroom, office, and bedroom zones each have one playback device, while the living room and master bedroom zones each have multiple playback devices. In the living room zone, playback devices 104, 106, 108, and 110 may be configured to play audio content in synchrony as individual playback devices, as one or more bonded playback devices, as one or more consolidated playback devices, or any combination thereof. Similarly, in the case of the master bedroom, playback devices 122 and 124 may be configured to play audio content in synchrony as individual playback devices, as a bonded playback device, or as a consolidated playback device.

In one example, one or more playback zones in the environment of FIG. 1 may each be playing different audio content. For instance, the user may be grilling in the balcony zone and listening to hip hop music being played by the playback device 102 while another user may be preparing food in the kitchen zone and listening to classical music being played by the playback device 114. In another example, a playback zone may play the same audio content in synchrony with another playback zone. For instance, the user may be in the office zone where the playback device 118 is playing the same rock music that is being playing by playback device 102 in the balcony zone. In such a case, playback devices 102 and 118 may be playing the rock music in synchrony such that the user may seamlessly (or at least substantially seamlessly) enjoy the audio content that is being played out-loud while moving between different playback zones. Synchronization among playback zones may be achieved in a manner similar to that of synchronization among playback devices, as described in previously referenced U.S. Pat. No. 8,234,395.

As suggested above, the zone configurations of the media playback system 100 may be dynamically modified, and in some embodiments, the media playback system 100 supports numerous configurations. For instance, if a user physically moves one or more playback devices to or from a zone, the media playback system 100 may be reconfigured to accommodate the change(s). For instance, if the user physically moves the playback device 102 from the balcony zone to the office zone, the office zone may now include both the playback device 118 and the playback device 102. The playback device 102 may be paired or grouped with the office zone and/or renamed if so desired via a control device such as the control devices 126 and 128. On the other hand, if the one or more playback devices are moved to a particular area in the home environment that is not already a playback zone, a new playback zone may be created for the particular area.

Further, different playback zones of the media playback system 100 may be dynamically combined into zone groups or split up into individual playback zones. For instance, the dining room zone and the kitchen zone 114 may be combined into a zone group for a dinner party such that playback devices 112 and 114 may render audio content in synchrony. On the other hand, the living room zone may be split into a television zone including playback device 104, and a listening zone including playback devices 106, 108, and 110, if the user wishes to listen to music in the living room space while another user wishes to watch television.

c. Example Control Devices

FIG. 3 shows a functional block diagram of an example control device 300 that may be configured to be the control device 126 of the media playback system 100. As shown, the control device 300 may include a processor 302, memory 304, a network interface 306, and a user interface 308. In one example, the control device 300 may be a dedicated controller for the media playback system 100. In another example, the control device 300 may be a network device on which media playback system controller application software may be installed, such as for example, an iPhone™, iPad™ or any other smart phone, tablet or network device (e.g., a networked computer such as a PC or Mac™).

The processor 302 may be configured to perform functions relevant to facilitating user access, control, and configuration of the media playback system 100. The memory 304 may be configured to store instructions executable by the processor 302 to perform those functions. The memory 304 may also be configured to store the media playback system controller application software and other data associated with the media playback system 100 and the user.

In one example, the network interface 306 may be based on an industry standard (e.g., infrared, radio, wired standards including IEEE 802.3, wireless standards including Bluetooth, WiFi, IEEE 802.11a, 802.11b, 802.11g, 802.11n, 802.11ac, 802.15, 4G mobile communication standard, near field communications (NFC) and so on). The network interface 306 may provide a means for the control device 300 to communicate with other devices in the media playback system 100. In one example, data and information (e.g., such as a state variable) may be communicated between control device 300 and other devices via the network interface 306. For instance, playback zone and zone group configurations in the media playback system 100 may be received by the control device 300 from a playback device or another network device, or transmitted by the control device 300 to another playback device or network device via the network interface 306. In some cases, the other network device may be another control device.

Playback device control commands such as volume control and audio playback control may also be communicated from the control device 300 to a playback device via the network interface 306. As suggested above, changes to configurations of the media playback system 100 may also be performed by a user using the control device 300. The configuration changes may include adding/removing one or more playback devices to/from a zone, adding/removing one or more zones to/from a zone group, forming a bonded or consolidated player, separating one or more playback devices from a bonded or consolidated player, among others. Accordingly, the control device 300 may sometimes be referred to as a controller, whether the control device 300 is a dedicated controller or a network device on which media playback system controller application software is installed.

In some embodiments, the control device 300 may also be equipped with capability to play back audio sound. According, the control device 300 may have optionally have audio processing components 310, audio amplifier 312, speaker 314 and microphone(s) 316 shown in FIG. 3 as dotted line boxes.

The user interface 308 of the control device 300 may be configured to facilitate user access and control of the media playback system 100, by providing a controller interface such as the controller interface 400 shown in FIG. 4. The controller interface 400 includes a playback control region 410, a playback zone region 420, a playback status region 430, a playback queue region 440, and an audio content sources region 450. The user interface 400 as shown is just one example of a user interface that may be provided on a network device such as the control device 300 of FIG. 3 (and/or the control devices 126 and 128 of FIG. 1) and accessed by users to control a media playback system such as the media playback system 100. Other user interfaces of varying formats, styles, and interactive sequences may alternatively be implemented on one or more network devices to provide comparable control access to a media playback system.

The playback control region 410 may include selectable (e.g., by way of touch or by using a cursor) icons to cause playback devices in a selected playback zone or zone group to play or pause, fast forward, rewind, skip to next, skip to previous, enter/exit shuffle mode, enter/exit repeat mode, enter/exit cross fade mode. The playback control region 410 may also include selectable icons to modify equalization settings, and playback volume, among other possibilities.

The playback zone region 420 may include representations of playback zones within the media playback system 100. In some embodiments, the graphical representations of playback zones may be selectable to bring up additional selectable icons to manage or configure the playback zones in the media playback system, such as a creation of bonded zones, creation of zone groups, separation of zone groups, and renaming of zone groups, among other possibilities.

For example, as shown, a “group” icon may be provided within each of the graphical representations of playback zones. The “group” icon provided within a graphical representation of a particular zone may be selectable to bring up options to select one or more other zones in the media playback system to be grouped with the particular zone. Once grouped, playback devices in the zones that have been grouped with the particular zone will be configured to play audio content in synchrony with the playback device(s) in the particular zone. Analogously, a “group” icon may be provided within a graphical representation of a zone group. In this case, the “group” icon may be selectable to bring up options to deselect one or more zones in the zone group to be removed from the zone group. Other interactions and implementations for grouping and ungrouping zones via a user interface such as the user interface 400 are also possible. The representations of playback zones in the playback zone region 420 may be dynamically updated as playback zone or zone group configurations are modified.

The playback status region 430 may include graphical representations of audio content that is presently being played, previously played, or scheduled to play next in the selected playback zone or zone group. The selected playback zone or zone group may be visually distinguished on the user interface, such as within the playback zone region 420 and/or the playback status region 430. The graphical representations may include track title, artist name, album name, album year, track length, and other relevant information that may be useful for the user to know when controlling the media playback system via the user interface 400.

The playback queue region 440 may include graphical representations of audio content in a playback queue associated with the selected playback zone or zone group. In some embodiments, each playback zone or zone group may be associated with a playback queue containing information corresponding to zero or more audio items for playback by the playback zone or zone group. For instance, each audio item in the playback queue may comprise a uniform resource identifier (URI), a uniform resource locator (URL) or some other identifier that may be used by a playback device in the playback zone or zone group to find and/or retrieve the audio item from a local audio content source or a networked audio content source, possibly for playback by the playback device.

In one example, a playlist may be added to a playback queue, in which case information corresponding to each audio item in the playlist may be added to the playback queue. In another example, audio items in a playback queue may be saved as a playlist. In a further example, a playback queue may be empty, or populated but “not in use” when the playback zone or zone group is playing continuously streaming audio content, such as Internet radio that may continue to play until otherwise stopped, rather than discrete audio items that have playback durations. In an alternative embodiment, a playback queue can include Internet radio and/or other streaming audio content items and be “in use” when the playback zone or zone group is playing those items. Other examples are also possible.

When playback zones or zone groups are “grouped” or “ungrouped,” playback queues associated with the affected playback zones or zone groups may be cleared or re-associated. For example, if a first playback zone including a first playback queue is grouped with a second playback zone including a second playback queue, the established zone group may have an associated playback queue that is initially empty, that contains audio items from the first playback queue (such as if the second playback zone was added to the first playback zone), that contains audio items from the second playback queue (such as if the first playback zone was added to the second playback zone), or a combination of audio items from both the first and second playback queues. Subsequently, if the established zone group is ungrouped, the resulting first playback zone may be re-associated with the previous first playback queue, or be associated with a new playback queue that is empty or contains audio items from the playback queue associated with the established zone group before the established zone group was ungrouped. Similarly, the resulting second playback zone may be re-associated with the previous second playback queue, or be associated with a new playback queue that is empty, or contains audio items from the playback queue associated with the established zone group before the established zone group was ungrouped. Other examples are also possible.

Referring back to the user interface 400 of FIG. 4, the graphical representations of audio content in the playback queue region 440 may include track titles, artist names, track lengths, and other relevant information associated with the audio content in the playback queue. In one example, graphical representations of audio content may be selectable to bring up additional selectable icons to manage and/or manipulate the playback queue and/or audio content represented in the playback queue. For instance, a represented audio content may be removed from the playback queue, moved to a different position within the playback queue, or selected to be played immediately, or after any currently playing audio content, among other possibilities. A playback queue associated with a playback zone or zone group may be stored in a memory on one or more playback devices in the playback zone or zone group, on a playback device that is not in the playback zone or zone group, and/or some other designated device.

The audio content sources region 450 may include graphical representations of selectable audio content sources from which audio content may be retrieved and played by the selected playback zone or zone group. Discussions pertaining to audio content sources may be found in the following section.

d. Example Audio Content Sources

As indicated previously, one or more playback devices in a zone or zone group may be configured to retrieve for playback audio content (e.g. according to a corresponding URI for the audio content) from a variety of available audio content sources. In one example, audio content may be retrieved by a playback device directly from a corresponding audio content source (e.g., a line-in connection). In another example, audio content may be provided to a playback device over a network via one or more other playback devices or network devices.

Example audio content sources may include a memory of one or more playback devices in a media playback system such as the media playback system 100 of FIG. 1, local music libraries on one or more network devices (such as a control device, a network-enabled personal computer, or a networked-attached storage (NAS), for example), streaming audio services providing audio content via the Internet (e.g., the cloud), or audio sources connected to the media playback system via a line-in input connection on a playback device or network devise, among other possibilities.

In some embodiments, audio content sources may be regularly added or removed from a media playback system such as the media playback system 100 of FIG. 1. In one example, an indexing of audio items may be performed whenever one or more audio content sources are added, removed or updated. Indexing of audio items may involve scanning for identifiable audio items in all folders/directory shared over a network accessible by playback devices in the media playback system, and generating or updating an audio content database containing metadata (e.g., title, artist, album, track length, among others) and other associated information, such as a URI or URL for each identifiable audio item found. Other examples for managing and maintaining audio content sources may also be possible.

The above discussions relating to playback devices, controller devices, playback zone configurations, and media content sources provide only some examples of operating environments within which functions and methods described below may be implemented. Other operating environments and configurations of media playback systems, playback devices, and network devices not explicitly described herein may also be applicable and suitable for implementation of the functions and methods.

III. Example System for Synchronization of Content Between Networked Devices

FIG. 5A shows an example network configuration 500 where an initiating device 502 may be communicatively coupled to a synching device 504 through a communication network 506. The initiating device 502 and synching device 504 may be configured to play audio content, video content, or a combination of audio and video content in synchrony in accordance with embodiments described herein.

The communication network 506 may be, for example, a WiFi network, Bluetooth network, cellular network, satellite network, or the Internet. The communication network 506 may transmit and receive data between the initiating device 502 and the synching device 504. Additionally, a server 508 may be coupled to the communication network. The server 508 may be a computer system or data storage system configured to store media content such as audio content, video content, or a combination of audio and video content.

In the event that an initiating device or synching device does not have the content to be played back locally, the server 508 may also send the audio and video content to the initiating device 502 and/or synching device 504 for playback. The content may take the form of packets or frames, for example, which for purposes of discussion, may be considered equivalent data structures. In this regard, the initiating device 502 and the synching device 504 may receive different types of media, the same type of media, or a combination of the same and different media from the server 508 and play back the content.

FIG. 5A generally describes an example network configuration where the initiating device 502 and synching device 504 may take many forms, including audio devices or video devices. FIG. 5B shows the network configuration 500 of FIG. 5A where the initiating device is a video device 550 and the synchronizing device is one or more audio playback devices 552, 554. The one or more audio playback devices may in some instances define a zone of audio playback devices.

The video device 550 may be arranged to playback video and cause the audio to be played back on one or more of the audio playback devices 552, 554. For example, the video device 550 may be a television, a computer, or a mobile device such as the control device for controlling an audio playback system. The television may enable playback of video content upon a channel being selected. In the case of the computer or mobile device, a user interface may enable selection of video content, such as in a web browser 558. The web browser 558 may have a link to the video content. Additionally, or alternatively, the video device may show or have one or more indications associated with the audio playback devices 552, 554. These indications may be selectable such that the video is played back on the video device 550 and the audio is played back on the selected audio playback device. For example, the indications may take the form of links in the web browser 558 that are selectable to cause audio content to be played back to a respective audio playback device 554 or playback zone living room 552. Upon selecting a link or channel, the video content may be played back on the video device 550 (e.g., a computer) and the audio content may be retrieved from the server 508 and played back on selected the audio playback device 554 or playback zone 552. US Patent Publication 20150253960 (Ser. No. 14/197,403) entitled “Webpage Media Playback”, the contents of which are incorporated herein in their entirety, describes a process of using a web browser to select zones for audio playback in an audio playback system.

Latency or jitter conditions on the communication network 506 may affect playback of audio and video content. Latency may be a measure of a delay in a one way trip of a packet from one device on the communication network 506 to another device on the communication network 506. Jitter may be a measure of the variance in the one-way trip time. The communication network 506 may or may not be suitable for audio/video communications depending on the amount of latency or jitter on the network as this may affect synchronization of audio and video playback.

Suitable network conditions may be a low latency or a low jitter network. For video content, low latency may be defined as less than a 40 ms delay in a one way trip of a packet from a first device to a second device on the network for video sequence although other examples of low latency may exist. Low jitter may be defined as a plus or minus 20 ms variance in a one-way trip time for the video sequence although other examples of low jitter may exist. In other words, if an audio playback device and video playback device retrieves audio content and video content respectively from the server 508 on the network, any latency or jitter greater than the low latency or low jitter amounts may lead to perceivable synchronization problems between the audio and video during playback on the initiating device 502 and the synching device 504. The synchronization problems might be evidenced as lack of lip synchronization between the audio and video content.

FIG. 6 is an illustration of an example structure of the initiating device 502 or synching device 504 (referred to for purposes of FIG. 6 as the device 600) for performing the various functions described herein. The initiating device 502 and synching device 504 may be the audio playback device, a video playback device, or generally a media playback device.

The device 600 may include a processor 602, memory 604, local clock 606, and network interface 608 communicatively coupled to a bus 610 or some other mechanism for providing communication as between the processor 602, memory 604, local clock 606, and network interface 608. The memory 604 may be read only memory, random access memory, a hard drive, removable computer readable media, or database for instance for storing data. The processor 602 may have an arithmetic processing logic and be capable of executing computer instructions stored in the memory 604 for performing the various functions disclosed herein. The local clock 606 may be a timer, clock, oscillator, voltage controlled oscillator, or some other hardware or software mechanism for maintaining hardware timing on the device 600. The network interface 608 may facilitate network communications over the communication network 606. The network communications may include transmission of data, for example, packets or frames, over the communication network 606.

FIG. 7 illustrates an example timing diagram for determining the latency and jitter of the communication network 506. The timing diagram shows a timeline of data communications as between two devices on the communication network 506. In FIG. 7, the devices are labeled as device A and device B, where device A and device B may be capable of transmitting and receiving data such as an audio playback device, video playback device, or generally a media playback device. The latency and jitter of a communication network 506 may be determined by sending and receiving a test packet, test frame, or some other burst of data from device A to device B.

Device A may have a clock for maintaining timing information such as local clock 606. In this regard, device A can send a packet 702 with a timestamp to device B. Alternatively, device A may provide some indication in the packet which identifies the time when the packet was sent and while storing the actual time on device A. The indication may be a counter or unique identifier in the packet which can be correlated to the actual time stored on device A. The timestamp may indicate the value of the clock of device A when the packet is sent.

Device B may receive the test packet at t₁ from Device A and send a second packet 704 back to the device A at t₂. The second packet 704 may be an acknowledgement packet which indicates to device A receipt of the first packet 702 by device B. The acknowledgement packet may contain the timestamp originally sent in the test packet and/or timestamp(s) corresponding to t₁ and/or t₂. Device A may receive the acknowledgement packet at t₃ as indicated by its local clock. Device A may then determine network latency and/or jitter based on receipt of the acknowledgment packet.

A difference between when the packet is sent (e.g., indicated by the timestamp in the acknowledgment) to when it was received, optionally subtracting the processing time of device B, e.g., (t₃−t₀)−(t₂−t₁), may be a round trip time of the packet. One half of this value may be indicative of a one-way trip time between device A and device B. This one-way trip time may be the latency of the network, assuming that processing time associated with receiving the first packet 702 and sending the second packet 704 at device B (represented by the difference between t₁ and t₂) is negligible or accounted for. Variations in the one-way times can indicative of jitter. Several determinations of one-way times by device A and device B can be performed and averaged together to provide a mean latency and a mean jitter of the communication network 606. The mean latency and mean jitter may be a characterization of the condition of the communication network 606. This characterization may be performed prior to playback of audio or video content or in the event that the network is known or suspected to have latency or jitter beyond a desired amount.

Two or more media devices, audio playback devices, or video devices playing back audio and video content in synchrony may present the audio, video, or media content at the same time or within a time period no more than the frame rate. However, each device may have its own local clock used for timing and playback of the audio and video content, and these clocks may not be synchronized. In this regard, the initiating device 502 may provide timing information to the synching device 504. The timing information may enable the synching device 504 to present content at substantially the same time that the initiating device 502 presents content, achieving sufficient synchronization for audio content being played by one device and video content being played by another device. Sufficient synchronization, in some examples, may be characterized as “lip-synchronization” between the audio and video content.

FIG. 8 shows an example of communication timing between device A, the initiating device 502, and device B, the synching device 504, for achieving synchronous playback of audio and video. Device A and device B may each have a local clock for maintaining timing information. The timing of the local clocks may drift over time causing loss of synchronization between the local clock of the initiating device and the local clock of the synching device.

Device A and device B may establish communications over the communication network 506. Playback of audio or video content begins by the device A sending a packet 802 to device B at time t₀. The packet may have an identifier of content to play and an indication of when to play back the content.

FIG. 9 illustrates an example of the packet 802. The packet 900 may define a header 902. The header 902 may define routing information so that the communication network can route the packet from device A to device B.

The packet may also define a data field. The data field may include one or more of a sequence number 904, a clock generation number 906, a latency 908, a delta value 910, a URI 912, and a presentation timestamp (PTS) 914. The URI 912 may be an address, hyper-text, or link, for example, to indicate the location of content on a remote device, which may be on the initiating device 502, the server 508, or some other device on the communication network 506. Additionally, the sequence number 904 may be a number or indication which uniquely identifies the packet. The delta value may indicate when to playback the audio or video content, e.g., when the playback is to start. This delta value may be a length of time defined as a difference in time between a time on the local clock of the initiating device 502 when the packet is sent and when the content is to be played by the initiating device 502. An example delta value may be greater than the mean latency of the network but no more than a frame rate of the content. Additionally, the packet 802 may define a clock generation number 906 which is associated with changes or updates to a presentation offset. The packet 802 may also have a presentation timestamp (PTS) 914 which indicates where in audio content or video content, for example, playback of the content is to start.

FIG. 10 is an example format of a video sequence, audio sequence, or audio/video sequence that represents content to be played by the initiating device 502 and the synching device 504. The content may comprise one or more audio or video frames or packets that have a plurality of presentation timestamps. The presentation timestamps may identify a place in the audio or video content. For example, PTS0 may represent the beginning of the video or audio content, PTS1 may indicate content 30 seconds into the video or audio sequence, and PTS2 may indicate content 60 seconds into the video or audio sequence. In this regard, the video or audio sequence may define one or more PTS so that the synching device 604 may play back the same content, either audio or video content, in synchronization with the initiating device 502.

In some examples, device A may send the packet 802 a plurality of times to the synching device. Device A may send the packet 802 multiple times to account for possible packet loss on the communication network 506. Each packet 802 sent by the initiating device to the synching device may have a sequence number and a clock generation number. Additionally, for example, the sequence number may increase for each packet. This way device B can distinguish multiple such packets and process each of them only once.

Referring back to FIG. 8, device B may receive the packet 802 at t₁ over the communication network 506. Device B may extract the URI, the delta value and the PTS from the packet.

In some embodiments, device B may send an acknowledgement packet 804 back to the initiating device. FIG. 11 shows an example of the acknowledgement packet 1100. The acknowledgement packet 1100 may have various fields similar to the packet 802. The acknowledgement packet 1100 may have a header 1102 with addressing information for routing the packet from the synching device to the initiating device. Further, the acknowledgment packet 1100 may have one or more identifiers, such as the sequence number 1104 and/or clock generation number 1106 received in the packet 1100. The clock generation number 1106 may uniquely identify a clock associated with playback timing and a change may indicate a change in the clock timing, for example, if there is a discontinuity in playback or error in the timing. The acknowledgement packet 1100 may contain one or more of the sequence number 1104 and/or clock generation number 1106 so as to indicate to device A receipt of the packet 802 by device B.

At this point, device A and device B may be ready to play the content indicated by the URI. The URI may indicate, for example, where on the server 508 the content is located.

Device A and/or device B may obtain the content to play based on the identifier of content to play. The content may include audio content, video content, or a combination of audio and video content. If device A is an audio playback device, the audio playback device may disregard the video content during playback. Alternatively, if device B is a video playback device, then the video playback device may disregard the audio content during playback. Other arrangements are also possible for the location of the content and mechanism for playback.

Both devices may be playing back the same content indicated by the URI, albeit one device may play back video content and the other device may play back the audio content corresponding to the video content. Further, each device may play the content starting at the identified presentation timestamp in the packet.

Additionally, audio and video frames may have different frame lengths and the specified PTS may not apply to the content being played by the device. For instance, the PTS may be for video frames but not audio frames, and the device is playing audio frames. To accommodate this, a device may play content after the indicated presentation time depending on the content type. For instance, a device may account for the difference by applying an appropriate correction to the delta value so as to maintain proper presentation of content as between the two devices.

Referring back again to FIG. 8, the synching device may determine a local clock time to play the content. In this regard, the delta value may indicate the time the initiating device, device A, will play the content. For instance, the delta value may indicate that the content at the presentation timestamp may play on the initiating device 502 at a time equal to the local clock time of the initiating device 502 plus the delta value. This is shown as t₃. Similarly, the synching device 504 may use the delta value with its time of the local clock on the synching device to determine when to play the content. For instance, the time to play the content on the synching device 504 may be at a time equal to the local clock time of the synching device plus the delta value, as shown as t₄. Because of the latency and jitter of the communication network 506, the playback time t₃ and t₄ may not be exactly the same. But as long a difference between t3 and t4 is within the allowable limits for perception of lip-sync, such as 40 ms for video, the audio and video playback may be sufficiently synchronized.

As an example, the delta value may be defined as 10 ms. If the local clock of the synching device 504 indicates 1000 ms, then the content at the presentation timestamp may be played back on the synching device when the local clock equals 1010 ms. Similarly, if the local clock of the initiating device 502 indicates 1005 ms, then the content at the presentation timestamp may be played back on the initiating device when the local clock of the initiating device equals 1015 ms.

In some examples, the delta may be subtracted by the mean network latency depending on network conditions. For instance, if the network conditions are not low latency, then the mean latency may be subtracted from the delta value. The initiating device 502 may perform the subtraction and send the delta value, as corrected, to the synching device 504. Alternatively, the synching device 504 may perform the subtraction. In this case, the initiating device 502 may provide the synching device 504 with the latency value in the packet 802 or at some other time. This corrected delta value may be used to determine when to play back the content in a manner similar to what was discussed above.

In some examples the delta may be subtracted by a minimum network latency depending on network conditions. For instance, if the network conditions are not low latency, then a smallest calculated network latency may be subtracted from the delta value. The initiating device 502 may perform the subtraction and send the delta value, as corrected, to the synching device 504. Alternatively, the synching device 504 may perform the subtraction. In this case, the initiating device 502 may provide the synching device 504 with the latency value in the packet 802 or at some other time. This corrected delta value may be used to determine when to play back the content in a manner similar to what was discussed above.

Before t₃ and before t₄, the initiating device 502 and synching device 504 may obtain, respectively, the content to play based on the identifier of content to play. This identifier may be the URI in some instances.

The initiating device 502 and synching device 504 may then play the obtained content. The content may be played at the identified PTS in synchrony based on the time of respective local clocks, e.g., t₃ or t₄ respectively. After playback of the first frame, the initiating and synching device may refer to subsequent presentation timestamps, PTS2, PTS3 etc. in the content to present subsequent frames of content, based on the timing of the respective local clocks. For example, if the presentation timestamps in the content indicates to play a frame each 40 ms, then each frame may be played at a time every 40 ms as timed by the local clock for both the initiating device 502 and the synching device 504.

The initiating device 502 may send updates to various parameters identified in the packet 802 to the synching device 504. The updates may be sent in the form of a synchronization packet. These updates may need only to be sent in one direction from the initiating device 502 to the playback device 504 thus yielding a unidirectional synchronization for content playback.

FIG. 12 illustrates an example synchronization packet 1200. The synchronization packet 1200 sent by the initiating device to the synching device 504 may have a header 1202 and one or more updated parameters. The header 1202 may contain addressing information for routing the packet from the initiating device to the synching device, for example. The updated parameters may include a clock generation number 1204, a new received new delta value 1206, and a new PTS 1208.

The new presentation timestamp 1208 may define a new place in the content to synchronize.

The new delta value 1206 may refer to the time in the future that the referenced content will play. For instance, the timing of the local clock may drift over time. In embodiments, the synching device 504 may adjust a clock speed of its local clock, e.g., a rate of playback, based on this received new delta value 1206 and the new presentation offset that it calculates therewith.

The clock generation number 1204 may uniquely associate the received new delta value 1206 and/or PTS 1208 to the appropriate clock maintained by the synching device. These clocks may be physical or virtual clocks.

FIG. 13 shows an example format of content, e.g., an audio or video frame(s) 1300, to be played back by the synching device 504 showing timing information. The format may have a plurality of presentation timestamps (PTS) and content associated with each PTS. The PTS may indicate the time when the associated content (e.g., frame) is to be played back. For instance, the PTS may indicate playback of content at each PTS every 40 ms. If the local clock is 1000 ms, when the content associated with PTS0 is played, then the content at PTS1 should be played back at 1040 ms, and the content at PTS3 should be played back at 1080 ms. Subtracting the time that the PTS should be played from the current time of the local clock, may indicate an expected delta value based on the local clock when the content is to be played by the synching device 504. The received new delta value may indicate when the audio content at the PTS should be presented. The variation, e.g., presentation offset, between the expected delta value and the received new delta value indicated in the synchronization may be used to adjust the local clock on the synching device 504. Specifically, the ratio of the difference between the expected delta value and the received new delta value and the received new delta value can be used to adjust the speed of the local clock on the synchronizing device: (Delta E-Delta R)/(Delta_R)

-   -   where Delta_E is the expected length of time until playback of a         frame and Delta_R is the received new delta value or new length         of time until playback of the frame (also referred to as new         delta value).         The ratio can be multiplied, for example, by the time of the         local clock on the synching device 504 to achieve this         correction. By the initiating device 502 providing the received         new delta value 1206, the rate of playback of the synching         device 604 may be adjusted without requiring bidirectional         communication.

As an example of this update, consider a local clock indicating a time of 1500 ms. The next frame of content as indicated by the PTS is to be played at 1520 ms. Accordingly, the device may playback the content in 20 ms, an expected length of time until playback of a frame. A received new delta value may indicate playback of the content in 25 ms. Accordingly, the speed of the local clock is adjusted based on this 5 ms difference, e.g., the presentation offset.

The synchronization packet 1200 may be sent periodically. Each synchronization packet 1200 with a received new delta value 1206 received by the synching device 504 may be used to update the local clock speed. Alternatively, only those received new delta values in a synchronization packet which are less than a predefined threshold amount may be used to update the local clock speed. Still alternatively, if a difference between Delta_E and Delta_R for a synchronization frame is negative, then the local clock speed may be adjusted.

In other embodiments, the local clock speed may be adjusted at a defined interval. The interval may be a fixed or variable time since a last adjustment of the local clock speed or every N synchronization packets that is received. The received new delta values in the plurality of synchronization packets received during the interval may be used to update local clock speed. For example, for each synchronization frame received, a difference between Delta_E and Delta_R may be calculated for that frame. The lowest difference within the interval may be used to adjust the local clock speed. Alternatively, for each synchronization frame received, a difference between Delta_E and Delta_R is calculated for that frame and the local clock speed may adjusted based on an average of the differences during the interval. Other variations are also possible.

The synchronization packet 1200 may also have a new clock generation number 1206 and sequence number 1208. If a new value of a clock generation number 1206 is provided, then any previous adjustments to the speed of the local clock should be discarded and a raw or uncorrected local clock time should be used in determining timing of playback. In essence, receipt of these numbers may indicate that the timing relationship between the clocks on the initiating device 502 and the synching device 502 should be reset.

Method 1400 shown in FIG. 14 presents an embodiment of a method that can be implemented within the disclosed operating environment. Method 1400 and the other process disclosed herein may include one or more operations, functions, or actions as illustrated by one or more of blocks 1402 to 1416. Although the blocks are illustrated in sequential order, these blocks may also be performed in parallel, and/or in a different order than those described herein. Also, the various blocks may be combined into fewer blocks, divided into additional blocks, and/or removed based upon the desired implementation.

In addition, for the method 1400 and other processes and methods disclosed herein, the flowchart shows functionality and operation of one possible implementation of present embodiments. In this regard, each block may represent a module, a segment, or a portion of program code, which includes one or more instructions executable by a processor for implementing specific logical functions or steps in the process. The program code may be stored on any type of computer readable medium, for example, such as a storage device including a disk or hard drive. The computer readable medium may include non-transitory computer readable medium, for example, such as computer-readable media that stores data for short periods of time like register memory, processor cache and Random Access Memory (RAM). The computer readable medium may also include non-transitory media, such as secondary or persistent long term storage, like read only memory (ROM), optical or magnetic disks, compact-disc read only memory (CD-ROM), for example. The computer readable media may also be any other volatile or non-volatile storage systems. The computer readable medium may be considered a computer readable storage medium, for example, or a tangible storage device. In addition, for the method 500 and other processes and methods disclosed herein, each block in FIG. 14 may represent circuitry that is wired to perform the specific logical functions in the process.

Referring back, FIG. 14 is an example flow chart 1400 of operations associated with playback of media in synchronization between an initiating device and a synching device from the perspective of the initiating device. At 1402, a decision is made whether to determine the latency and/or jitter of a communication network. At 1404, if the latency and/or jitter is to be determined, then a test packet is sent from an initiating device to a synching device. At 1406, the initiating device receives an acknowledgment packet to the test packet from the synching device. At 1408, a network latency or jitter is determined based on the receipt of the acknowledgment packet. At 1410, the initiating device may send an identifier of content to play and an indication of when to play the content. The initiating device may send the identifier and indication in the form of a packet to the synching device. At 1412, the initiating device may determine a local clock time to play the content. At 1414, the initiating device obtains the content to play based on the identifier of content to play. For example, the initiating device may obtain the content from a server. At 1416, the initiating device plays back the obtained content based on a time on the local clock and the local clock time to play the content. For instance, the time on the local clock may match the local clock time to play the content. At 1418, a synchronization packet may be sent from the initiating device to the synching device. The synchronization packet may be used by the synching device to determine a new presentation offset.

FIG. 15 is an example flow chart 1500 which illustrates operations associated with playback of media in synchronization between an initiating device and a synching device from the perspective of the synching device. At 1502, if the latency and/or jitter is to be determined, then at 1504, a test packet may be received from an initiating device. At 1506, the synching device may send an acknowledgment packet to the test packet back to the initiating device. At 1508, the synching device may receive a packet from the initiating device with an identifier of content to play and an indication of when to play the content. At 1510, the synching device may determine a local clock time to play the content. The local clock time may be based on a local clock of the initiating device and the indication of when to play the content. In some examples, a network latency may be accounted for in the determination of the local clock time to play the content. At 1512, the synching device may obtain the content to play based on the received identifier of content to play. At 1514, the synching device may play the obtained content based on a time on the local clock and the local clock time to play the content. For instance, the time on the local clock may match the local clock time to play the content. At 1516, the synching device may receive a synchronization packet. At 1516, the synching device may adjust a clock speed of the local clock. The adjustment may to control rate of playback of the content based on this synchronization packet.

IV. Conclusion

The description above discloses, among other things, various example systems, methods, apparatus, and articles of manufacture including, among other components, firmware and/or software executed on hardware. It is understood that such examples are merely illustrative and should not be considered as limiting. For example, it is contemplated that any or all of the firmware, hardware, and/or software aspects or components can be embodied exclusively in hardware, exclusively in software, exclusively in firmware, or in any combination of hardware, software, and/or firmware. Accordingly, the examples provided are not the only way(s) to implement such systems, methods, apparatus, and/or articles of manufacture.

Additionally, references herein to “embodiment” means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one example embodiment of an invention. The appearances of this phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. As such, the embodiments described herein, explicitly and implicitly understood by one skilled in the art, can be combined with other embodiments.

The specification is presented largely in terms of illustrative environments, systems, procedures, steps, logic blocks, processing, and other symbolic representations that directly or indirectly resemble the operations of data processing devices coupled to networks. These process descriptions and representations are typically used by those skilled in the art to most effectively convey the substance of their work to others skilled in the art. Numerous specific details are set forth to provide a thorough understanding of the present disclosure. However, it is understood to those skilled in the art that certain embodiments of the present disclosure can be practiced without certain, specific details. In other instances, well known methods, procedures, components, and circuitry have not been described in detail to avoid unnecessarily obscuring aspects of the embodiments. Accordingly, the scope of the present disclosure is defined by the appended claims rather than the forgoing description of embodiments.

When any of the appended claims are read to cover a purely software and/or firmware implementation, at least one of the elements in at least one example is hereby expressly defined to include a tangible, non-transitory medium such as a memory, DVD, CD, Blu-ray, and so on, storing the software and/or firmware. 

We claim:
 1. A system comprising: a first device comprising: a local clock; a network interface; a processor and tangible, non-transitory computer-readable media having first instructions encoded therein and executable by the processor; and a second device comprising: a network interface, wherein the network interface of the first device is configured to communicate with the network interface of the second device over a network; and a processor and tangible, non-transitory computer-readable media having second instructions encoded therein and executable by the processor of the second device; wherein the second instructions when executed by the processor of the second device cause the second device to: send an identifier of content to play and an indication of when to play the content to the first device over the network, wherein the second device subtracts a network latency from the indication of when to play the content; wherein the first instructions when executed by the processor of the first device cause the first device to: determine a local clock time to play the content, the local clock time to play the content based on a time of the local clock of the first device and the indication of when to play the content; obtain, from a third device over the network, the content to play based on the received identifier of content to play; and play the obtained content based on the time of the local clock and the local clock time to play the content, wherein the content comprises a plurality of frames, and wherein the indication of when to play the content is a length of time until playback of a frame, the second instructions comprising instructions executable by the processor of the second device to send a synchronization packet comprising a new length of time until playback of the frame, and the first instructions comprising instructions executable by the processor of the first device to determine an expected length of time until playback of the frame based on a presentation timestamp embedded in the content, wherein the presentation timestamp indicates a timing of playback for the content, and adjust a clock speed of the local clock based on the expected length of time until playback of the frame and the new length of time until playback of the frame.
 2. The system of claim 1, wherein the network latency is based on a mean of a round trip packet delay between the first device and the second device.
 3. The system of claim 1, wherein the identifier of content to play is a uniform resource indicator (URI) which facilitates access to the content on the third device via the network.
 4. The system of claim 1, wherein determining a local clock time to play the content comprises adding the length of time until playback starts to the time of the local clock.
 5. The system of claim 1 wherein adjusting the clock speed comprises calculating the following expression: (Delta E-DeltaR)/(Delta_R) where Delta_E is the expected length of time until playback of the frame and Delta_R is the new length of time until playback of the frame.
 6. The system of claim 1, wherein sending the identifier of content to play comprises sending a packet with a sequence number.
 7. The system of claim 6, wherein the first instructions further comprise instructions executable by the processor of the first device to send an acknowledgement packet to the second device, the acknowledgment packet including the sequence number of the packet.
 8. A method for synchronizing playback between a first device and a second device, the method comprising: receiving, by the first device from the second device over a network, an identifier of content to play and an indication of when to play the content, wherein a network latency is subtracted from the indication of when to play the content by the second device; determining, by the first device, a local clock time to play the content, the local clock time to play the content based on a time of a local clock of the first device and the indication of when to play the content; obtaining, by the first device from a third device over the network, the content to play based on the received identifier of content to play; and playing, by the first device, the obtained content based on the time of the local clock and the local clock time to play the content, wherein the content comprises a plurality of frames, and wherein the indication of when to play the content is a length of time until playback of a frame, the method further comprising receiving, by the first device from the second device over the network, a synchronization packet comprising a new length of time until playback of the frame, determining, by the first device, an expected length of time until playback of the frame based on a presentation timestamp embedded in the content, wherein the presentation timestamp indicates a timing of playback for the content, and adjusting, by the first device, a clock speed of the local clock based on the expected length of time until playback of the frame and the new length of time until playback of the frame.
 9. The method of claim 8, wherein the first device is an audio playback device, wherein the content comprises audio content and video content, and wherein playing, by the first device, the content comprises dropping, by the first device, the video content and playing the audio content.
 10. The method of claim 8, wherein the synchronization packet defines a new clock generation number.
 11. The method of claim 8, further comprising playing, by the first device, the content in synchronization with the second device based on the presentation timestamp embedded in the content.
 12. A tangible, non-transitory computer readable storage medium including instructions encoded therein and executable by a processor, wherein the instructions when executed cause the processor to implement a method comprising: receiving, by the first device from the second device over a network, an identifier of content to play and an indication of when to play the content, wherein a network latency is subtracted from the indication of when to play the content by the second device; determining, by the first device, a local clock time to play the content based on a time of a local clock of the first device and the indication of when to play the content; obtaining, by the first device from a third device over the network, the content to play based on the received identifier of content to play; and playing, by the first device, the obtained content based on the time of the local clock and the local clock time to play the content, wherein the content comprises a plurality of frames, and wherein the indication of when to play the content is a length of time until playback of a frame, the method further comprising receiving, by the first device from the second device over the network, a synchronization packet which defines a new length of time until playback of the frame; determining, by the first device, an expected length of time until playback of the frame based on a presentation timestamp embedded in the content, wherein the presentation timestamp indicates a timing of playback for the content; and adjusting, by the first device, a clock speed of the local clock based on the expected length of time until playback of the frame and the new length of time until playback of the frame. 